<?php
class AppController extends Controller {
    var $components = array('Auth','Session');
    var $helpers = array('Html', 'Form', 'Session');

    function beforeFilter() {
    	Security::setHash('md5');
    
       	$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
        $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login');
        $this->Auth->loginRedirect = array('controller' => 'pages', 'action' => 'display', 'home');
    }
}
?>
